package com.zuikaku.nettychat.netty.controller;

import com.zuikaku.nettychat.netty.framework.BaseController;
import io.netty.channel.socket.SocketChannel;
import org.springframework.stereotype.Component;

@Component
public class TestController extends BaseController {


    public String test(String data, SocketChannel socketChannel){
        int number = Integer.parseInt(data);
        int result =number*number;
        return String.valueOf(result);
    }
}
